package com.service;



import java.util.List;

import javax.annotation.Resource;

import org.apache.taglibs.standard.lang.jstl.test.beans.PublicBean1;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dao.petDaoImpl;
import com.entity.Pets;

@Service
@Transactional
public class PetServiceImpl {
	@Resource
	private petDaoImpl pDaoImpl;
	
	public List<Pets> findAllPet(){
		return pDaoImpl.findAllPet();
	}
	public Pets findPetById(int id){
		Pets pets=pDaoImpl.findPetsById(id);
		return pets;
	}
	public void updatePet(Pets p){
		pDaoImpl.updatePet(p);
	}
}
